<?php

class Application_Model_DbTable_WeiboMultiPics extends Zend_Db_Table_Abstract
{

    protected $_name = 'txy_weibo_multi_pics';

    public function addNewPic($data){
        $this->insert($data);
    }
    
    public function getPicsListById($weiboId){
        $res=$this->fetchAll("weiboid='".$weiboId."'");
        return $res->toArray();
    }
    
    public function updatePic($data){
        $this->update($data, "id=".$data['id']);
    }

}

